package com.jinlin.test;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {
    private TagsFlowlayout tfl;
    private TagGroup tfl2;
    private String[] mDatas = new String[]{
            "XUANXIU", "YUWEN", "XUANXIU", "SHUXUE", "FEIXUANXIU", "TIYU"
    };

    private void assignViews() {
        tfl = (TagsFlowlayout) findViewById(R.id.tfl);
        tfl2 = (TagGroup) findViewById(R.id.tfl2);
        tfl.setTags(mDatas);
        tfl2.setTags(mDatas);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        assignViews();
    }
}
